package net.ainom.scarab.xmlrpc;

import java.util.ArrayList;
import java.util.List;

public class FilterResponse {
    private int          response     = 1;
    private StringBuffer stringBuffer = new StringBuffer();
    private String       errorData;
    private List         issues       = new ArrayList();
    private String author;

    public FilterResponse() {
    }

    public int getResponse() {
        return response;
    }

    public void setResponse(int response) {
        this.response = response;
    }

    public String getErrorData() {
        return errorData;
    }

    public void setErrorData(String errorData) {
        this.errorData = errorData;
    }

    public FilterResponse append(String s) {
        stringBuffer.append(s);
        return this;
    }

    public void addIssue(String issue) {
        issues.add(issue);
    }

    public List getIssues() {
        return issues;
    }

    public String getAuthor() {
        return author;
    }
    
    public void setAuthor(String author) {
        this.author = author;
    }
}
